#ifndef FILEDRAWWINDOW_H
#define FILEDRAWWINDOW_H

#include <QMainWindow>
#include<QMessageBox>
#include"filedrawwidget.h"
#include"catalogtable.h"
//搜索框
#include<QLineEdit>



namespace Ui {
class FileDrawWindow;
}

class FileDrawWindow : public QMainWindow
{
    Q_OBJECT

public:
    QLineEdit *search;
    fileDrawWidget *openglWidget;
    explicit FileDrawWindow(QWidget *parent = nullptr);
    ~FileDrawWindow();
    double windowWidth,windowHeight;

signals:
    void searchStateChanged(int layerId,int objectId);//搜索状态被改变
public slots:
    void onActionColorPressed();//sld着色
    void onActionMovePressed();//移动
    void onActionScalePressed();//放大
    void onActionResetPressed();//复位
    void onActionTablePressed();//层次表
    void onMapLoaded();//地图文件加载之后的操作
    void onSearch();//搜索
    void onActionSelectPressed();//选择

private:
    Ui::FileDrawWindow *ui;
    catalogTable catalog;
};

#endif // FILEDRAWWINDOW_H
